Elementary Linear Algebra solved exercise